package cn.powerone.scm.domain;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.powerone.common.annotation.Excel;
import cn.powerone.common.core.domain.BaseEntity;

/**
 * 全局附件对象 scm_attachment_linkage
 * 
 * @author PowerOne
 * @date 2025-08-22
 */
@Setter
@Getter
public class ScmAttachmentLinkage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 被链接的表ID */
    @Excel(name = "被链接的表ID")
    private Long linkedId;

    /** 被链接的表ID */
    @Excel(name = "被链接的表ID")
    private Long linkedId2;

    /** 被链接的表ID */
    @Excel(name = "被链接的表ID")
    private Long linkedId3;

    /** 显示编号 */
    @Excel(name = "显示编号")
    private String displayCode;

    /** 附件类型 */
    @Excel(name = "附件类型")
    private Long attachmentType;

    /** 附件状态 */
    @Excel(name = "附件状态")
    private Long attachmentStatus;

    /** 附件名字 */
    @Excel(name = "附件名字")
    private String attachmentName;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String attachmentUrl;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("linkedId", getLinkedId())
            .append("linkedId2", getLinkedId2())
            .append("linkedId3", getLinkedId3())
            .append("attachmentType", getAttachmentType())
            .append("attachmentStatus", getAttachmentStatus())
            .append("attachmentName", getAttachmentName())
            .append("attachmentUrl", getAttachmentUrl())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
